package com.wiki.gds.rabbitmq.controller;

import com.wiki.gds.rabbitmq.send.MessageSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    MessageSender messageSender;
    @RequestMapping("/test1")
    public String test(){

       MOMO a=new MOMO();
       a.setId(1);
       a.setName("zxc");
       messageSender.send(a);

        return "asd";
    }



}
